package com.hqyj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.entity.Order;
import com.hqyj.entity.ResultVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rock
 * @since 2022-09-20
 */
public interface IOrderService extends IService<Order> {
    //查询所有订单数据
    ResultVo queryAllOrder(Order order);

    //根据用户查询订单
    ResultVo queryOrderByUser(Order order);

    //根据地址查询订单
    ResultVo queryOrderByAddress(String address);

    //查询订单的详细信息
    ResultVo showOrder(int oid);

    //添加订单
    ResultVo addOrder(Order order);

    //修改订单
    ResultVo updateOrder(Order order);

    //删除订单
    ResultVo delOrderByOid(int oid);

    //计算订单总价
    ResultVo totalOrder(Order order);






}
